package com.yssoft.entity.supplier;

import java.math.BigDecimal;
import java.util.Date;
import com.yssoft.utils.StringUtils;

public class BillCount {
	private  Integer  deleteFlag;//删除数据0表示有效。1表示无效
	private Integer goodsDetailId;
	private Integer tWId;
	private BigDecimal goodsDetailQuantity;
	private String warehouseName;
	private Integer tEId;
	private Integer goodsId;
	private String goodsCode;
	private BigDecimal orderDetailQuantity;
	private String orderCode;
	private Integer productId;
	private Integer orderId;
	private String creatorName;
	private Date createTime;
	private Date orderDate;
	private String contacts;
   
	private String specifications_unit;
	private String phone;
	private String recAddress;
	private String productName;
	private BigDecimal unit;
	private String specifications;
	private String perfStandard;
	private String customName;
	public void setPhone(String phone) {
		if(phone!=null && phone.length()>4) {
			this.phone = StringUtils.replaceWithStar(phone, 2, 0);
		}else {
			this.phone = StringUtils.replaceWithStar(phone, 3, 4);
		}
	}
	 
	public void setRecAddress(String recAddress) {
		if(recAddress!=null && recAddress.length()>4) {
			this.recAddress = StringUtils.replaceWithStar(recAddress, 4, 0);
		}else {
			this.recAddress = StringUtils.replaceWithStar(recAddress, 2, 0);
		}
		
	}
	public String getContacts() {
		return	StringUtils.replaceWithStar(contacts, 1, 0);
	}
	public void setContacts(String contacts) {
		this.contacts = StringUtils.replaceWithStar(contacts, 1, 0);
	}
	public Integer getGoodsDetailId() {
		return goodsDetailId;
	}
	public void setGoodsDetailId(Integer goodsDetailId) {
		this.goodsDetailId = goodsDetailId;
	}
	public Integer gettWId() {
		return tWId;
	}
	public void settWId(Integer tWId) {
		this.tWId = tWId;
	}
	public BigDecimal getGoodsDetailQuantity() {
		return goodsDetailQuantity;
	}
	public void setGoodsDetailQuantity(BigDecimal goodsDetailQuantity) {
		this.goodsDetailQuantity = goodsDetailQuantity;
	}
	public String getWarehouseName() {
		return warehouseName;
	}
	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}
	public Integer gettEId() {
		return tEId;
	}
	public void settEId(Integer tEId) {
		this.tEId = tEId;
	}
	public Integer getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	public String getGoodsCode() {
		return goodsCode;
	}
	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	public BigDecimal getOrderDetailQuantity() {
		return orderDetailQuantity;
	}
	public void setOrderDetailQuantity(BigDecimal orderDetailQuantity) {
		this.orderDetailQuantity = orderDetailQuantity;
	}
	public String getOrderCode() {
		return orderCode;
	}
	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public Integer getOrderId() {
		return orderId;
	}
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getOrderDate() {
		return orderDate;
	}
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	public String getSpecifications_unit() {
		return specifications_unit;
	}
	public void setSpecifications_unit(String specifications_unit) {
		this.specifications_unit = specifications_unit;
	}
	public String getPhone() {
		return phone;
	}
	 
	public String getRecAddress() {
		return recAddress;
	}
	 
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public BigDecimal getUnit() {
		return unit;
	}
	public void setUnit(BigDecimal unit) {
		this.unit = unit;
	}
	public String getSpecifications() {
		return specifications;
	}
	public void setSpecifications(String specifications) {
		this.specifications = specifications;
	}
	public String getPerfStandard() {
		return perfStandard;
	}
	public void setPerfStandard(String perfStandard) {
		this.perfStandard = perfStandard;
	}
	public String getCustomName() {
		return	StringUtils.replaceWithStar(customName, 2, 4);
	}
	public void setCustomName(String customName) {
		//一个字
		if(customName!=null &&customName.length()<2) {
			this.customName = customName;
		//小于7个字的
		}else if(customName!=null &&customName.length()>=2&&customName.length()<7) {
			this.customName = StringUtils.replaceWithStar(customName, 2, 0);
		//大于7个字的
		}else {
			this.customName = StringUtils.replaceWithStar(customName, 2, 4);
		}
		
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	 
}
